package com.mtl.front.mapper;

import com.mtl.front.domain.Article;
import com.mtl.front.domain.SqlArticle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.additional.idlist.IdListMapper;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * 文章管理 Mapper 接口
 *
 * @author lsc
 * @since 2019-08-02
 */
@Repository
public interface TArticleMapper extends BaseMapper<Article>, IdListMapper<Article,Integer>{
   /* List<SqlArticle> selectByCondition(@Param("searchKey") String searchKey);*/

    List<Article> selectArticlePage(Map<String,Object> map);
    List<Article> orderArticleByPostTime();
}
